<?php
/* $Id$ */
use Buan\Config;
use Buan\View;

$urlRoot = Config::get('ext.Scribble.urlRoot');
View::getGlobalView()->addStylesheets("{$urlRoot}/css/scribble/index/index.css");
View::getGlobalView()->addJavascripts("{$urlRoot}/js/scribble/index/index.js");
?>
<div class="head">
	<h1>Dashboard</h1>
</div>

<ul id="dashboard-widgets">
<?php foreach($widgets as $w): ?>
	<li class="dashwidget">
		<h3 class="dashwidget-title">
			<strong><?php $this->html->e($w->getTitle()); ?></strong>
			<a href="" title="Toggle on/off"><span>Toggle</span></a>
		</h3>
		<div class="dashwidget-body">
			<?php echo $w->getBody()->render(); ?>
		</div>
	</li>
<?php endforeach; ?>
</ul>